package com.zf.apartment.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zf.common.annotation.Excel;
import com.zf.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 房间属性关系对象 room_property_roomdata
 *
 * @author rxf
 * @date 2024-10-10
 */
@TableName(resultMap = "com.zf.apartment.mapper.RoomPropertyRoomdataMapper.RoomPropertyRoomdataResult")
public class RoomPropertyRoomdata extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 房间属性id
     */
    @TableId(value = "room_property_room_data_id", type = IdType.AUTO)
    private Long roomPropertyRoomDataId;

    /**
     * 房间id
     */
    @Excel(name = "房间id")
    private Long roomId;

    /**
     * 属性id
     */
    @Excel(name = "属性id")
    private Long propertyRoomDataId;

    public void setRoomPropertyRoomDataId(Long roomPropertyRoomDataId) {
        this.roomPropertyRoomDataId = roomPropertyRoomDataId;
    }

    public Long getRoomPropertyRoomDataId() {
        return roomPropertyRoomDataId;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    public Long getRoomId() {
        return roomId;
    }

    public void setPropertyRoomDataId(Long propertyRoomDataId) {
        this.propertyRoomDataId = propertyRoomDataId;
    }

    public Long getPropertyRoomDataId() {
        return propertyRoomDataId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("roomPropertyRoomDataId", getRoomPropertyRoomDataId())
                .append("roomId", getRoomId())
                .append("propertyRoomDataId", getPropertyRoomDataId())
                .toString();
    }
}